home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / itrns211.zip / PC2UNIX.SH < prev    next >
Linux/UNIX/POSIX Shell Script  |  1991-12-15  |  2KB  |  110 lines

  1. #!/bin/sh
  2. # The shell command to remove <CR>'s from this file are:
  3. # $ tr -d "\015" < pc2unix.sh > xx
  4. # $ mv xx pc2unix.sh
  5. # Or, you may use vi or any other editor.
  6.  
  7. BACKSLASH='\\'
  8. echo "NOTE: YOU HAVE TO FIRST REMOVE THE <CR> CHARACTERS IN THIS FILE"
  9. echo "PC2UNIX.SH BY HAND --- USE vi OR THE FOLLOWING SHELL COMMANDS::"
  10. echo "$ tr -d \"${BACKSLASH}015\" < pc2unix.sh > xx"
  11. echo "$ mv xx pc2unix.sh"
  12. echo
  13. echo "Only then will this program work...."
  14.  
  15. #
  16. # Run this command to remove the <CR> character from the pair <CR><LF>
  17. # inserted in text files on the PC.
  18. # Used to make the PC files palatable to a UNIX system.
  19. # This program also moves the font files around, since they are handled
  20. # diferently on an UNIX system (mainly because file name's
  21. # on an UNIX system may be longer than on PC systems......)
  22.  
  23. FILES="./changes
  24. ./copyrt
  25. ./doc/dvnc.itx
  26. ./doc/dvng.itx
  27. ./doc/dvnc.ps
  28. ./doc/dvng.ps
  29. ./doc/flag.ips
  30. ./doc/idoc.itx
  31. ./doc/idoc.ps
  32. ./doc/nehru.itx
  33. ./doc/vnehru.itx
  34. ./doc/readme
  35. ./doc/s1.ips
  36. ./doc/s1.itx
  37. ./doc/s2.ips
  38. ./doc/s2.itx
  39. ./doc/tamil.itx
  40. ./doc/tamil.ps
  41. ./doc/tech.tex
  42. ./install.pc
  43. ./install.unx
  44. ./lib/devnac.afm
  45. ./lib/dvnc.ifm
  46. ./lib/mdvnc.ifm
  47. ./lib/dvng.ifm
  48. ./lib/dvpn10.mf
  49. ./lib/mdvng.ifm
  50. ./lib/devnac.ps
  51. ./lib/dvipsrc
  52. ./lib/itrans.pro
  53. ./lib/psfonts.map
  54. ./lib/readme
  55. ./lib/shenv
  56. ./lib/tamil.mf
  57. ./lib/tamilmax.mf
  58. ./lib/wntamil.mf
  59. ./lib/wntml.ifm
  60. ./lib/wntml10.mf
  61. ./lib/wntml12.mf
  62. ./lib/wntml17.mf
  63. ./readme
  64. ./src/deansify.c
  65. ./src/dodeans
  66. ./src/font.c
  67. ./src/ichar.c
  68. ./src/ifm.h
  69. ./src/ilex.l
  70. ./src/imap.h
  71. ./src/itops.c
  72. ./src/itotex.c
  73. ./src/itrans.1
  74. ./src/itrans.c
  75. ./src/itrans.h
  76. ./src/iyacc.y
  77. ./src/lang.c
  78. ./src/lexyyc
  79. ./src/makefile
  80. ./src/makefile.tcc
  81. ./src/makefile.gcc
  82. ./src/makefile.unx
  83. ./src/pifm.c
  84. ./src/prips
  85. ./src/prips.1
  86. ./src/utils.c
  87. ./src/ytabc
  88. ./src/ytabh
  89. ./version.h"
  90.  
  91. echo "Removing the CR character in these files..."
  92. for i in $FILES
  93. do
  94.     echo File: $i
  95.     chmod +rw $i
  96.     tr -d "\015" < $i > xxx.xxx
  97.     mv xxx.xxx $i
  98. done
  99.  
  100. echo Moving the wntmlpk files to lib from lib/300dpi
  101. echo "(This is the Tamil font.)"
  102.  
  103. mv lib/300dpi/wntml10.pk lib/wntml10.300pk
  104. mv lib/300dpi/wntml12.pk lib/wntml12.300pk
  105. mv lib/300dpi/wntml17.pk lib/wntml17.300pk
  106. rmdir lib/300dpi
  107.  
  108. echo "pc2unix: All done"
  109. exit 0
  110.